#pragma once

#include <linux/major.h>

struct request {
    int dev; /* -1 if no request */
    int cmd; /* READ or WRITE */
    unsigned long sector;
    unsigned long nr_sectors;
};

extern void hd_init();

#ifdef MAJOR_NR

#if (MAJOR_NR == HD_MAJOR)
#define DEVICE_NAME "harddisk"
#define DEVICE_INTR do_hd
#endif

#ifdef DEVICE_INTR
void (*DEVICE_INTR)(void) = NULL;
#endif

#endif
